package com.ambow.core.controller;


import com.ambow.core.po.DqGame;
import com.ambow.core.service.DqImgsService;
import com.dq.gamepropaganda.common.R;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author dq
 * @since 2022-09-05
 */
//跨域
@CrossOrigin
@RestController
@RequestMapping("/dqImgs")
public class DqImgsController {

    @Autowired
    private DqImgsService dqImgsService;


    //轮播图
    //根据id找图片

//    @PostMapping("/findImgListById")
//    @ApiOperation("根据id查所有图片")
//    public R findGameById(Integer gameId){
//        DqGame game = dqGameService.getById(gameId);
//        return R.ok().message("ok").data("game",game);
//    }
}

